import ProductIndex from '@/components/product/index.vue'
import ProductInfo from '@/components/product/info.vue'
import ProductRanking from '@/components/product/ranking.vue'
import ProductTypelist from '@/components/product/typelist.vue'


//路由列表
const list = [
    {
        path:'index',
        name: 'ProductIndex',
        component: ProductIndex,
    },
    {
        path:'info',
        name: 'ProductInfo',
        component: ProductInfo,
    },
    {
        path:'ranking',
        name: 'ProductRanking',
        component: ProductRanking,
    },
    {
        path:'typelist',
        name: 'ProductTypelist',
        component: ProductTypelist,
    },
]

//父路由结构
const layout = {
    template: `<router-view></router-view>`
}

export default [{
    path: '/product',
    name: 'product',
    children: list,
    component: layout,
}]